package day12.homework2;

public class Test {
    public static void main(String[] args) {
        AbstractFactory factory = FactoryProducer.getFactory(FactoryProducer.FACTORY_MOTO_VEHICLE);
        MotoVehicle motoVehicle = factory.getMotoVehicle(MotoVehicleFactory.MOTO_VEHICLE_TRUCK);
        System.out.println(motoVehicle.calcPrice());
    }
}
